package cn.com.thinker.gen.create.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

@Data
@ConfigurationProperties(prefix="thinker.project")
public class ProjectProperties {

	public enum GenStrategy{
		PARENT,CHILDREN,BOTH
	}
	public enum DaoChoice{
		JPA,MYBATIS,BOTH
	}
	private String parentName ;
	private String[] moduleNames;
	private String[] sdkNames;
	private boolean distributed;
	private String genStrategy = GenStrategy.BOTH.name();
	private String daoChoice = DaoChoice.JPA.name();
	private String eurekaServer;
	private String outputDir;
	private String templateDir ;
	private String thinFrameVersion;

	public boolean getDistributed(){
		return this.distributed;
	}
}
